package com.example.proxy.static_proxy.service.impl;

import com.example.proxy.static_proxy.service.UserService;
import lombok.AllArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <P> @Author: SongKeCheng
 * <P> Type: Class
 * <P> Description: 代理类
 * <P> Date: 2024/7/22:14:22
 */

@SuppressWarnings({"unchecked", ""})
@AllArgsConstructor
public class UserServiceProxy implements UserService {
    private static final Logger log = LoggerFactory.getLogger(UserServiceProxy.class);

    UserService userService;



    @Override
    public void addUser() {
        log.info("开启事务");
        userService.addUser();
        log.info("提交事务");
    }
}
